﻿using System;

namespace _3
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b, c, i;
            for (i = 100; i <= 999; i++)
            {
                a = i / 100;
                b = i % 100 / 10;
                c = i % 10;
                if (a * a * a + b * b * b + c * c * c == i)
                {
                    Console.WriteLine(i);
                }

            }
        }
    }
}
